package model

import (
	"time"
)

type DockerStatus int

const (
	DockerBuilding DockerStatus = iota
	DockerPUSH     DockerStatus = iota
	DockerFinished DockerStatus = iota
	DockerError    DockerStatus = iota
)

type DockerImageBuilder struct {
	ID          int64        `json:"id" gorm:"AUTO_INCREMENT"`
	GitHash     string       `josn:"git_hash"`
	ProjectName string       `json:"project_name"`
	Git_id      int          `json:"git_id"`
	Status      DockerStatus `json:"status"`
	Begin_time  time.Time    `json:"begin_time"`
	End_time    time.Time    `json:"end_time"`
}
